package org.example.chain;

import org.example.model.FarmMachine;

public abstract class SafetyHandler {
    protected SafetyHandler nextHandler;

    public void setNextHandler(SafetyHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void handleSafetyEvent(FarmMachine machine, String event, SafetyData data);
}
